﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
                assembly="Inovout.Kuajing.Exports"
				        namespace="Inovout.Kuajing.Exports.Models">

  <joined-subclass name="TraditionalOrder" extends="Inovout.Kuajing.Exports.Models.Order"
               table="Exports_TraditionalOrder">
    <key column="TraditionalOrderId"/>

    <many-to-one name="OrderSigner" column="OrderSignerId" class="Inovout.Organizations.Models.Employee"  cascade="all" />
    <property  name="OrderSignerName" type="String"  />
    <property  name="OrderSignerMobile" type="String"  />
    <property  name="OrderSignerTel" type="String"  />

    <many-to-one name="Contact" column="ContactId" class="Inovout.Organizations.Models.Employee" cascade="all"/>
    <property  name="ContactName" type="String"  />
    <property  name="ContactMobile" type="String"  />
    
    <many-to-one name="Consignee" column="ConsigneeId" class="Inovout.Kuajing.Exports.Models.Consignee" cascade="all"/>
    <property  name="ConsigneeLocationCode" type="String"  />
    <property  name="ConsigneeLocationName" type="String"  />
    
    <property  name="DeclarationPortName" type="String"  />
    <property  name="DeclarationPortCode" type="String"  />
    
    <property  name="ExpectedDeclarationDate"  type="DateTime"  />
    
    <property  name="ExportCountryName" type="String"  />
    <property  name="ExportContryCode" type="String"  />
    
    
    <property  name="DeliveryCityName" type="String"  />
    <property  name="DeliveryCityCode" type="String"  />
    <property  name="DeliveryAddress" type="String"  />
    
    
    <property  name="PackingWay" type="Int32"  />
    
    <property  name="Container20" type="Int32"  />
    <property  name="Container40" type="Int32"  />
    <property  name="Container46" type="Int32"  />


    <property  name="BulkcargoWeight" type="Decimal"  />
    <property  name="BulkcargoVolume" type="Decimal"  />


    <property  name="TradeCurrency" type="String"  />
    <property  name="PriceRule" type="String"  />
    <property  name="PackageDescribe" type="String"  />
    <property  name="PackageNum" type="Int32"  />
    
    <property name="CreatedTime" access="field.camelcase" />
    <property name="CreatedUserName" access="field.camelcase" />
    <property name="ModifiedTime" access="field.camelcase" />
    <property name="ModifiedUserName" access="field.camelcase" />
    <property name="AccessedTime" access="field.camelcase" />
    <property name="AccessedUserName" access="field.camelcase" />
    <property name="Memo" />
    <property name="IsInvalid" />
  </joined-subclass>
</hibernate-mapping>
